package com.satchi.hib.pojo;

import com.satchi.service.GetCustomerService;

/**
 * FinCustomer entity. @author MyEclipse Persistence Tools
 */

public class FinCustomer implements java.io.Serializable {

	// Fields

	private String customerid;
	private String customer;
	private String customerremark;
	private FinCustomer parent;
	private boolean isenable;

	public boolean getIsenable() {
		return isenable;
	}

	public void setIsenable(boolean isenable) {
		this.isenable = isenable;
	}

	public String getCustomerid() {
		return customerid;
	}

	public void setCustomerid(String customerid) {
		this.customerid = customerid;
	}

	public String getCustomer() {
		return customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	public String getCustomerremark() {
		return customerremark;
	}

	public void setCustomerremark(String customerremark) {
		this.customerremark = customerremark;
	}
	
	public FinCustomer getParent(){
		return parent;
	}
	
	public void setParent(FinCustomer parent){
		this.parent = parent;
	}
	
	public int getShopCount(){
		GetCustomerService customerServ = new GetCustomerService();
		return customerServ.getShopCount(getCustomerid());
	}

	public FinCustomer(String customerid, String customer,
			String customerremark) {
		super();
		this.customerid = customerid;
		this.customer = customer;
		this.customerremark = customerremark;
	}

	public FinCustomer() {
		super();
	}

	// Constructors

}